package com.cssy.xxkj.logic.dao;

import com.cssy.xxkj.logic.entity.LogicProductionStorageoutDO;
import com.cssy.xxkj.logic.entity.vo.LogicSalesDetailVO;
import com.plat.helper.SearchConditions;

import java.util.List;

import org.springframework.dao.DataAccessException;

/**
 * 数据访问对象接口
 * @since 2014-10-09
 */
public interface LogicProductionStorageoutDAO extends LogicBizDAO<LogicProductionStorageoutDO>{

    /**
     * 插入数据
     * @param logicProductionStorageoutDO
     * @return 插入数据的主键
     */
    public String insertLogicProductionStorageoutDO(LogicProductionStorageoutDO logicProductionStorageoutDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicProductionStorageoutDO
     * @return 查出的记录数
     */
    public Integer countLogicProductionStorageoutDOByExample(LogicProductionStorageoutDO logicProductionStorageoutDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicProductionStorageoutDO
     * @return 受影响的行数
     */
    public Integer updateLogicProductionStorageoutDO(LogicProductionStorageoutDO logicProductionStorageoutDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicProductionStorageoutDO
     * @return 对象列表
     */
    public List<LogicProductionStorageoutDO> findListByExample(LogicProductionStorageoutDO logicProductionStorageoutDO) throws DataAccessException;

    /**
     * 根据主键获取logicProductionStorageoutDO
     * @param id
     * @return logicProductionStorageoutDO
     */
    public LogicProductionStorageoutDO findLogicProductionStorageoutDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicProductionStorageoutDOByPrimaryKey(String id) throws DataAccessException;
    
    public List<LogicSalesDetailVO> findQuerySaleDetailByScs(SearchConditions scs);
    
    public Integer countQuerySaleDetailByScs(SearchConditions scs);

}